home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir43
/
med300.zip
/
MEDONE.CLA
< prev
next >
Wrap
Text File
|
1994-02-22
|
2KB
|
38 lines
!▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
!█ █
!█ MEDONE.CLA █
!█ Finish editing a document and clean up memory █
!█ █
!█ Revision Number: 1 █
!█ Revision Date : 22-Feb-94 █
!█ █
!█ Revision History █
!█ 1 Created █
!█ █
!▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
MEMBER('MEMOEDIT')
!═════════════════════════════════════════════════════════════════════════
! Finish editing a document and clean up memory
!═════════════════════════════════════════════════════════════════════════
ME_Done PROCEDURE
CODE
IF MED:bbAllocFlag ! If memory was allocated
MED:bbAllocFlag = 0 ! Clear flag
IF MED:ulEditBuffer ! And free the buffer
CFree( MED:ulEditBuffer ) !
. . ! Endif
IF RECORDS(qDocument) ! If previous context
GET(qDocument, 1) ! Get previous context
DELETE(qDocument) ! Delete table record
ME_ReformDoc() ! Regenerate line table
ELSE ! Else
CLEAR(qDocument) ! Clear context
. ! Endif
RETURN !